<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2021/11/17
 * Time: 13:26
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

declare(strict_types=1);

namespace app\api\controller\v1;

use app\api\controller\Base;
use app\common\lib\Show;
use app\common\lib\Status;

class Index extends Base
{
    public function index()
    {
//        halt(config('wechat.miniPay'));
        halt(123);
    }

    public function getIndexList()
    {
        $banner = (new \app\common\business\Banner())->getListData("*,img as img_url");
        $system = [
            "title" => sysconf('sitename'),
            "icon" => (string)url("/" . sysconf('icon'), [], false, true)
        ];
        return Show::json_show(Status::mini_normal, "ok", [
            "banner" => $banner,
            "system" => $system
        ]);
    }
}